<script>
    const p1 = new Promise((resolve, reject) => resolve('p1'))
    const p2 = new Promise((resolve, reject) => resolve('p2'))

    Promise.all([p1, p2]).then(result => {
        console.log(result)
    })
</script>
